package com.market.manager;

import java.util.List;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.market.domain.Picture;

public interface PictureManager extends GenericManager<Picture, Long> {
	/**
	 * Load all pictures that are in recycle bin
	 * @return
	 */
	@Transactional(propagation = Propagation.REQUIRED,readOnly=true)
	public List<Picture> fetchAllRecycled();
	
	/**
	 * Load all pictures that are not in recycle bin
	 * @return
	 */
	@Transactional(propagation = Propagation.REQUIRED, readOnly=true)
	public List<Picture> fetchAllNotRecycled();
	
	
	
	/**
	 * Load all pictures that are marked as home page picture.
	 * @return
	 */
	@Transactional(propagation = Propagation.REQUIRED, readOnly=true)
	public List<Picture> fetchAllHomePagePictures();
	
	/**
	 * Load all pictures that are in specific year.
	 * @return
	 */
	@Transactional(propagation = Propagation.REQUIRED, readOnly=true)
	public List<Picture> fetchPictureByYear(String year);
}
